<%@ Page Language="C#" Theme="Defaultsys" AutoEventWireup="true" CodeFile="MailSettings.aspx.cs"
    Inherits="MailSettings" Title="Rapport Plan System - Mail settings" MasterPageFile="~/MasterPage.master"
    EnableEventValidation="false" ValidateRequest="false" %>

<%@ MasterType VirtualPath="~/MasterPage.master" %>
<asp:Content runat="server" ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1">
    <table border="0" width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td class="contTable">
                <table border="0">
                    <tr>
                        <td>
                            Email:
                        </td>
                        <td>
                            <asp:TextBox ID="txtEmail" runat="server" Width="311px" MaxLength="255"></asp:TextBox>
                            <asp:CustomValidator ID="CustomValidator1" runat="server" ClientValidationFunction="ValidateEmail"
                                ControlToValidate="txtEmail" ErrorMessage="(*)"></asp:CustomValidator></td>
                    </tr>
                    <tr>
                        <td>
                            Company name:
                        </td>
                        <td>
                            <asp:TextBox ID="txtCompanyName" runat="server" Width="311px" MaxLength="255"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            Address:
                        </td>
                        <td>
                            <asp:TextBox ID="txtAddress" runat="server" TextMode="MultiLine" Height="219px" Width="449px"
                                MaxLength="8000"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            Footer:
                        </td>
                        <td>
                            <asp:TextBox ID="txtFooter" runat="server" TextMode="MultiLine" Height="144px" Width="451px"
                                MaxLength="8000"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" Width="62px" />
                            <br />
                            <asp:Label ID="lblSavedSettings" runat="server" ForeColor="#FF8000" Text="Mail settings were saved succesfully"
                                Visible="False"></asp:Label><br />
                            <asp:CustomValidator ID="CustomValidator2" runat="server" ClientValidationFunction="ValidateEmail"
                                ControlToValidate="txtEmail" ErrorMessage="(*) Email address is not valid"></asp:CustomValidator></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
